using MediatR;
using B.S.RbacData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SupplierCustomerManagement.Write.API.Applications.Commands.suppliers
{
    /// <summary>
    /// 更新供应商状态命令
    /// </summary>
    public class UpdateSupplierStatusCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 供应商ID
        /// </summary>
        [Required(ErrorMessage = "供应商ID不能为空")]
        public int Id { get; set; }

        /// <summary>
        /// 新状态（启用/停用）
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        [StringLength(20, ErrorMessage = "状态长度不能超过20个字符")]
        public string Status { get; set; } = string.Empty;

      
    }
} 